package net.ericaro.neojavagen.blocks ;
import net.ericaro.neojavagen.expressions.Expression;
import net.ericaro.neojavagen.blocks.StatementWithoutTrailingSubstatement ;

/**
* *<pre> ReturnStatement :
    return Expression? ;
</pre>
*/
public class ReturnStatement  implements StatementWithoutTrailingSubstatement {

Expression expression ;

public ReturnStatement( Expression expression ){
	this.expression = expression ;
	}public ReturnStatement(  ){
 ;
}


public String toString(){
	StringBuilder stringbuilder = new StringBuilder();
	stringbuilder.append( "return" ).append(" ");
if (this.expression !=null ) stringbuilder.append( this.expression ).append(" ");
stringbuilder.append( ";\n" ).append(" ") ;
	return stringbuilder.toString();
}

}
